package com.it.springbootspringdatajpa.service;

import com.it.springbootspringdatajpa.domain.Contract;

import java.util.List;

/**
 * @projectName: springboot-spring-data-jpa
 * @package: com.it.springbootspringdatajpa.service
 * @className: IContractService
 * @author: Navid
 * @description: TODO
 * @date: 2021/10/23 18:36
 * @version: 1.0
 */
public interface IContractService {

    List<Contract> findAll();

    void insert(Contract contract);

    void updateNameById(String name, Integer id);

    void deleteById(Integer id);

    Contract findByCondition(String contractNo, String contractType, String contactName);

    List<Contract> findByContractStatus(boolean contractStatus);

    List<Contract> findByPaged(int pageIndex, int pageSize, String contractNo);

}
